﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;

namespace Model.Core.Services
{
    public class LocalMqClientCtrl : MqClientCtrl
    {
        public LocalMqClientCtrl(IConfiguration configuration, ILogger<MqClientCtrl> logger, LocalRobotInfo robotInfo) : base(logger, robotInfo)
        {
            configuration = configuration.GetSection("LocalMqClientOption");
            base.BuildMqttClientOptions(configuration);
            base.ConnectAsync();
        }
    }
}
